package com.cskaoyan.bean.bo.back.ad;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.util.Date;


/**
 * 广告类BO
 *
 * @author 李然
 * @date 2022/10/12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdBo {


    private Integer id;

    @NotBlank(message = "广告标题不能为空")
    @Length(max = 50, message = "广告标题过长")
    private String name;

    @NotBlank(message = "广告链接不能为空")
    private String link;

    @NotBlank(message = "广告图片不能为空")
    private String url;

    private Byte position;

    @NotBlank(message = "广告内容不能为空")
    private String content;

    private Date startTime;

    private Date endTime;

    private Boolean enabled;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;

}
